Enum isotope::utils::L4[][src]

pub enum L4 {
    False,
    True,
    Unknown,
    Both,
}
Expand description

IEEE 1364 standard 4-valued logic

Variants

False

The value is known to be false

True

The value is known to be true

Unknown

The value is unknown

Both

The value may be either true or false

Implementations

Create a new value which has f for a maybe-false bit

Create a new value which has t for a maybe-true bit

Create an L4 from a u8 encoding

Create an L4 from a boolean

Create an L4 from an optional boolean

Take the union of two L4 values, taken as subsets of {0, 1}

Take the intersection of two L4 values, taken as subsets of {0, 1}

Take the union of two L4 values, taken as subsets of {0, 1}

Take the intersection of two L4 values, taken as subsets of {0, 1}

Take the union of two L4 values, taken as subsets of {0, 1}

Take the intersection of two L4 values, taken as subsets of {0, 1}

Whether this value might be true

Whether this value might be false

Whether this value contains a given boolean value

The known truth value, if any

Get a static reference to this value

Take the conjunction of two values

Take the disjunction of two values

Trait Implementations

The resulting type after applying the & operator.

Performs the & operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Type of the iterator over the variants.

Number of variants.

Returns an iterator over the variants. Read more

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Borrow an optional value of type T

Hash this using a given hasher

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.